home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #2 / amigaacscoverdisc1998-021998.iso / utilities / shareware / misc / mads / install / mads install < prev    next >
Encoding:
Text File  |  1997-09-11  |  8.0 KB  |  295 lines

  1. ;**********************************************************************************************
  2. ;*                                                                                            *
  3. ;*                              Install Script for MADS v1.5                                  *
  4. ;*                                                                                            *
  5. ;*                                                                                            *
  6. ;*                                                                                            *
  7. ;*  English Translation: Alvaro Thompson                                                      *
  8. ;*  Spanish Translation: Alvaro Thompson                                                      *
  9. ;*  Italian Translation: Ital 2.5a (© Arturo Ortino)                                          *
  10. ;*  French  Translation: Regis Falck                                                          *
  11. ;*  Swedish Translation: Timmy Olsson                                                         *
  12. ;*                                                                                            *
  13. ;**********************************************************************************************
  14. ;
  15. ; $VER: MADS Install 1.5 (09.11.97)
  16.  
  17. (set lng @language)
  18. (set version "1.5")
  19.  
  20. (if (= (exists "ENV:MADS/Name"))
  21.  (set #who (getenv "MADS/Name"))
  22. )
  23.  
  24. (if (= (exists "ENV:MADS/Version"))
  25.  (set #usedversion (getenv "MADS/Version"))
  26. )
  27.  
  28.  
  29. (
  30.  
  31. (set #info     "Welcome to the MADS Installation Script!\n\nMADS is Copyright ©1997 Alvaro Thompson\nAll Rights Reserved.")
  32. (set #where    "Where do you wish to install MADS?\n(A Drawer will be created)")
  33. (set #pp       "I am now going to install the PowerPacker.library")
  34. (set #reqtools "I am now going to install the Reqtools.library")
  35. (set #visit    "Please visit the EMS Home Page:\n\nhttp://www.agima.demon.co.uk/emailsoft/")
  36. (set #name     "Please enter your name\n(For future updates)")
  37. (set #update   (cat 'Hi there '#who'\n\nI see that you have version '#usedversion' of MADS Installed.\nShall I simply update the files? or do you want me to do a complete install?'))
  38. (set #update2  "Update")
  39. (set #install  "Complete Install")
  40.  
  41. )
  42.  
  43. (if (= lng "svenska")
  44. (
  45.  
  46. (set #info    "Välkommen till MADS Installationen! \n\nMADS är Copyright ©1997 Alvaro Thompson\nAll Rights Reserved.") 
  47. (set #where    "Var vill du installera MADS?\n(En låda kommer att skapas)")
  48. (set #pp    "Jag kommer att installera Powerpacker.library")
  49. (set #reqtools    "Jag kommer att installera Reqtools.library")
  50. (set #visit    "Besök gärna EMS Hemsida:\n\nhttp://www.agima.demon.co.uk/emailsoft/")
  51. (set #name    "Var god skriv ditt namn\n(För framtida uppgraderingar)")
  52. (set #update    (cat 'Hej '#who'\n\nJag ser att du har version '#usedversion' av MADS installerat.\nSka jag uppdatera filerna? Eller vill du att jag gör en komplett installation?'))
  53. (set #update2    "Updatera")
  54. (set #install    "Komplett installation")
  55.  
  56. ))
  57.  
  58. (if (= lng "español")
  59. (
  60.  
  61. (set #info     "¡Bienvendo a la instalación de MADS v1!\n\nMADS es Copyright ©1997 Alvaro Thompson\nTodos los derechos reservado.")
  62. (set #where    "¿Donde quieres instalar MADS?\n(Un Cajón sera creado)")
  63. (set #pp       "Ahora voy a instalar PowerPacker.library")
  64. (set #reqtools "Ahora voy a instalar Reqtools.library")
  65. (set #visit    "Visite el EMS web site:\n\nhttp://www.agima.demon.co.uk/emailsoft/")
  66. (set #name     "Ponga su nombre por favor\n(Para versiones futuras)")
  67. (set #update   (cat 'Hola '#who'\n\nVeo que tienes la version '#usedrversion' de MADS instalada.\n\nQuieres una version revisada o una instalacion completa?'))
  68. (set #update2  "Revisar")
  69. (set #install  "Instalacion Completa")
  70.  
  71. ))
  72.  
  73. (if (= lng "italiano")
  74. (
  75.  
  76. (set #info     "Benvenuto al MADS Script di Installazione!\n\nMADS è Copyright ©1997 Alvaro Thompson\nTutti i Diritti Riservati")
  77. (set #where    "Dove tu desideri installare MADS?\n(Un Cassetto sarà creato)")
  78. (set #pp       "Io sto ora per installare il PowerPacker.library")
  79. (set #reqtools "Io sto ora per installare il Reqtools.library")
  80. (set #visit    "Per piacere Controlla il EMS Supportare sito:\n\nhttp://www.agima.demon.co.uk/emailsoft/") 
  81. (set #name     "Per piacere inserisci il tuo nime\n(Per aggiornamenti futuri)")                      
  82. (set #update   (cat 'Heilà '#who'\n\nIo cedo che tu hai versione '#usedversion' di MADS installato.\n\nAggiornare o Installare Completamente?'))
  83. (set #update2  "Aggiornare")
  84. (set #install  "Completo Install")
  85.                       
  86. ))
  87.  
  88. (if (= lng "français")
  89. (
  90.  
  91. (set #info     "Bienvenue dans le script d'installation de MADS!\n\nMADS est Copyright ©1997 Alvaro Thompson\nTous Droits Réservés.")
  92. (set #where    "Où voulez-vous installer MADS?\n(Un répertoire sera créé)")
  93. (set #pp       "Je vais installer maintenant la PowerPacker.library")
  94. (set #reqtools "Je vais installer maintenant la Reqtools.library")
  95. (set #visit    "Visitez le support EMS :\n\nhttp://www.agima.demon.co.uk/emailsoft/")
  96. (set #name     "Entrez votre nom SVP\n(Pour les prochaines versions)")
  97. (set #update   (cat 'Bonjour '#who'\n\nJe vois que vous avez déjà la version '#usedversion' de MADS Installée.\nDois-je simplement mettre à jour les fichiers ? ou voulez vous une installation complète?'))
  98. (set #update2  "Mise à jour")
  99. (set #install  "Installation Complète")
  100.  
  101. ))
  102.  
  103.  
  104.  
  105.  
  106. (message #info)
  107.  
  108.  
  109. (if (= (exists "ENV:MADS")
  110.  (set installorupdate
  111.   (askchoice
  112.    (prompt #update)
  113.    (help @askchoice-help)
  114.    (choices #update2 #install)
  115.    (default 0)
  116.    )
  117.   )
  118.  )
  119.  
  120.  
  121. (if (= installorupdate 0)
  122.   ( 
  123.  
  124.     (message "Now Updating...")
  125.    
  126.       (makedir "T:MADS")
  127.       
  128.       (textfile
  129.         (dest "T:MADS/Version")
  130.         (append version)
  131.       )
  132.       
  133.       
  134.      (copyfiles
  135.       (help @copyfiles-help) 
  136.       (source "T:MADS/")
  137.       (dest "ENVARC:MADS/")
  138.       (all) 
  139.      ) 
  140.  
  141.      (copyfiles
  142.       (help @copyfiles-help)
  143.       (source "T:MADS/")
  144.       (dest "ENV:MADS/")
  145.       (all)
  146.      )
  147.  
  148.     (delete "T:MADS" (all))
  149.  
  150.     (set #where_to_install (getenv "MADS/Path"))
  151.  
  152.     (makedir (tackon #where_to_install "Programs"))
  153.     
  154.     (copyfiles
  155.      (help @copyfiles-help)
  156.      (source "/Programs/")
  157.      (dest (tackon #where_to_install "Programs/"))
  158.      (all)
  159.     )
  160.     
  161.     (copyfiles
  162.      (help @copyfiles-help)
  163.      (source "/Docs/") 
  164.      (dest (tackon #where_to_install "Docs/"))
  165.      (all)
  166.     )
  167.     
  168.     (copyfiles
  169.      (help @copyfiles-help)
  170.      (source "/Goodies/")
  171.      (dest (tackon #where_to_install "Goodies/"))
  172.      (all)
  173.     )
  174.     
  175.     (copyfiles
  176.      (help @copyfiles-help)
  177.      (source "/MADS")
  178.      (dest #where_to_install)
  179.     )
  180.     
  181.     (copyfiles
  182.      (help @copyfiles-help)
  183.      (source "/Docs.info")
  184.      (dest #where_to_install)
  185.     ) 
  186.  
  187.     (message #visit)
  188.  
  189.     (set @default-dest #where_to_install)
  190.  
  191.     (exit)
  192. ))
  193.  
  194.  
  195. (set destination
  196.  (askdir
  197.   (prompt #where)
  198.   (help @askdir-help)
  199.   (default "Sys:")
  200.  )
  201. )
  202.  
  203. (makedir (tackon destination "MADS"))
  204. (set trgt (tackon destination "MADS"))
  205.  
  206. (copyfiles
  207.  (help @copylib-help)
  208.  (source "/Fonts/")
  209.  (dest "FONTS:")
  210.  (all)
  211. )
  212.  
  213. (copylib
  214.  (prompt #reqtools)
  215.  (source "/Libs/reqtools.library")
  216.  (dest "LIBS:")
  217.  (help @copylibs-help)
  218.  
  219. (copylib
  220.  (prompt #pp)
  221.  (source "/Libs/powerpacker.library")
  222.  (dest "LIBS:")
  223.  (help @copylibs-help)
  224.  
  225. (copyfiles
  226.  (help @copyfiles-help)
  227.  (source "/")
  228.  (dest trgt)
  229.  (all)
  230. )
  231.  
  232. (copyfiles
  233.  (help @copyfiles-help)
  234.  (source "//MADS.info")
  235.  (dest destination)
  236. )
  237.  
  238. (delete (tackon trgt "Install" (all)))
  239. (delete (tackon trgt "Install.info"))
  240. (delete (tackon trgt "Fonts" (all)))
  241. (delete (tackon trgt "Fonts.info"))
  242. (delete (tackon trgt "Libs" (all)))
  243. (delete (tackon trgt "Libs.info"))
  244.  
  245. (set @default-dest trgt)
  246.  
  247. (makedir "ENVARC:MADS")
  248. (makedir "ENV:MADS")
  249. (makedir "T:MADS")
  250.  
  251. (set name
  252.  (askstring
  253.   (prompt #name)
  254.   (help @askstring-help)
  255.  )
  256.  
  257. (textfile
  258.  (dest "T:MADS/Version")
  259.  (append version)
  260. )
  261.  
  262. (textfile
  263.  (dest "T:MADS/Path")
  264.  (append trgt)
  265. )
  266.  
  267. (textfile
  268.  (dest "T:MADS/Name")
  269.  (append name)
  270. )  
  271.  
  272. (copyfiles
  273.  (help @copyfiles-help)
  274.  (source "T:MADS/")
  275.  (dest "ENVARC:MADS/")
  276.  (all)
  277.  
  278. (copyfiles
  279.  (help @copyfiles-help)
  280.  (source "T:MADS/")
  281.  (dest "ENV:MADS/")
  282.  (all)
  283. )
  284.  
  285. (delete "T:MADS" (all))
  286.  
  287. (message #visit)
  288.  
  289. (exit)
  290.